---
import { languageTag } from '../paraglide/runtime';

interface Props {
	date: Date;
}

const { date } = Astro.props;
---

<time datetime={date.toISOString()}>
	{
		date.toLocaleDateString(languageTag(), {
			year: 'numeric',
			month: 'short',
			day: 'numeric',
		})
	}
</time>
